<div >
    <div ng-if="dateoption.level>=1" class="item item-input item-select">
        <span class="input-label">年<span ng-if="dateoption.required" style="color:red">*</span>:</span>
        <select ng-model="dateoption.year"
                name="selectYear"
                required
                ng-options="value.id as value.label for value in years">
        </select>
    </div>
    <div class="validation-error" ng-class="{'is-dirty':form.password.$dirty}"
         ng-messages="form.selectYear.$error" role="alert">
        <div ng-messages-include="templates/system-templates/detail-errors.html"></div>
    </div>
    
    <div ng-if="dateoption.level>=2" class="item item-input item-select">
        <span class="input-label">月<span ng-if="dateoption.required" style="color:red">*</span>:</span>
        <select ng-model="dateoption.month"
                name="selectMonth"
                required
                ng-options="value.id as value.label for value in months">
        </select>
    </div>
    <div class="validation-error" ng-class="{'is-dirty':form.password.$dirty}"
         ng-messages="form.selectMonth.$error" role="alert">
        <div ng-messages-include="templates/system-templates/detail-errors.html"></div>
    </div>

    <div ng-show="dateoption.level>=3"  class="item item-input item-select">
        <span class="input-label">日<span ng-if="dateoption.required" style="color:red">*</span>:</span>
        <select ng-model="dateoption.day"
                name="selectDay"
                required
                ng-options="value.id as value.label for value in days">
        </select>
    </div>
    <div class="validation-error" ng-class="{'is-dirty':form.password.$dirty}"
         ng-messages="form.selectDay.$error" role="alert">
        <div ng-messages-include="templates/system-templates/detail-errors.html"></div>
    </div>
</div>